import request from '@/utils/request'

export function listGoodsSpuInfo(query) {
  return request({
    url: '/webshop/GoodsSpuInfo/list',
    method: 'get',
    params: query
  })
}
export function listOne() {
  return request({
    url: '/webshop/CategoryOne/listAll',
    method: 'get'
  })
}export function listTwo() {
  return request({
    url: '/webshop/CategoryTwo/listAll',
    method: 'get'
  })
}export function listThree() {
  return request({
    url: '/webshop/CategoryThree/listAll',
    method: 'get'
  })
}
export function listBrand() {
  return request({
    url: '/webshop/BrandInfo/listAll',
    method: 'get'
  })
}

// 查询岗位详细
export function getGoodsSpuInfo(id) {
  return request({
    url: '/webshop/GoodsSpuInfo/' + id,
    method: 'get'
  })
}

// 删除岗位
export function delGoodsSpuInfos(ids) {
  return request({
    url: '/webshop/GoodsSpuInfo/' + ids,
    method: 'delete'
  })
}

// 新增岗位
export function addGoodsSpuInfo(data) {
  return request({
    url: '/webshop/GoodsSpuInfo',
    method: 'post',
    data: data
  })
}

// 修改岗位
export function updateGoodsSpuInfo(data) {
  return request({
    url: '/webshop/GoodsSpuInfo',
    method: 'put',
    data: data
  })
}

